import unittest
from case.test_case import CaseQian, CaseHou
from tools.tools import Tools


suite = unittest.TestSuite()
suite.addTest(CaseQian('test_register'))
suite.addTest(CaseQian('test_login'))
suite.addTest(CaseHou('test_01_login'))
suite.addTest(CaseHou('test_02_hui_sixin'))
suite.addTest(CaseHou('test_03_list_sixin'))
suite.addTest(CaseHou('test_04_shan_sixin'))
suite.addTest(CaseHou('test_05_guan_sixin'))
suite.addTest(CaseHou('test_06_cha_sixin'))
suite.addTest(CaseHou('test_07_qingkong'))
suite.addTest(CaseHou('test_08_set_page'))


Tools().log('rongyun.log')
Tools().report(suite=suite,description='融云测试报告',report_dir='./',filename='rongyun.html')
Tools().email('融云项目','执行了3条用例',['./rongyun.log','./rongyun.html'])
